import React, { PureComponent } from "react"
import Styles from '@/scss/froms.scss'
import { CloseOutlined } from '@ant-design/icons';
//表单修改表单导航栏组件
class CreateNav extends PureComponent<Iprops, any>{
  render() {
    return (
      <div className={Styles.nav}>
        <div><span className={Styles.create_title} >新建待办</span></div>
        <div className={Styles.nav_out} onClick={() => this.props.changeVisible()}><CloseOutlined style={{ fontSize: "1.3rem" }} /> </div>
      </div>
    )
  }
}
//传入的函数
type Iprops = {
  changeVisible: () => void
}

export default CreateNav